package day05;
//方法名和类名必须一致
public class Study {

	private String stuNo;
	private String name;
	private String className;
	private String gender;
	//构造函数没有返回类型
	public  Study() {
		this("1","3");
		//this不能多次调用
		//this("1","3","1","3");
     System.out.println("学习ing");
	}
	public Study(String stuNo, String name, String className, String gender) {
		//super();
		//this代表当前对象
		
		this.stuNo = stuNo;
		this.name = name;
		this.className = className;
		this.gender = gender;
	}
	public  Study(String a ,String b) {
		this("1","3","1","3");
		
     System.out.println("学习ing哈哈");
	}
	//普通方法不应该与类名相同
	public void study() {
		// TODO Auto-generated method stub
//		System.out.println("123");
//		return className;
		
	}
	public String getStuNo() {
		 return stuNo;
	}
	public void setStuNo(String stuNo) {
		this.stuNo = stuNo;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getClassName() {
		return className;
	}
	public void setClassName(String className) {
		this.className = className;
	}
	public String getGender() {
		return gender;
	}
	public void setGender(String gender) {
		this.gender = gender;
	
	}
}
